<template>
    <div>
        <div  v-for="item in list" :key="item.id">
            <h1>{{ item.sentence }}</h1>
            <p>{{ item.title }}</p>
            <p>{{ item.artist }}</p>
            <button>换一句</button>
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return{
            list:[
                {
                    id: 1,
                    sentence: "郎笑藕丝长，长丝藕笑郎。",
                    title: "《菩萨蛮·回文夏闺怨》",
                    artist: "苏轼"
                }
            ]
        }
    }
}
</script>

<style scoped>
h1{
    line-height: 60px;
    /* margin: auto; */
}
p{
    line-height: 20px;
    color: #888;
}
button{
    margin: 80px 0;
    width: 100px;
    height: 30px;
    color: white;
    background-color: #28a745;
    border: none;
    outline: none;
    border-radius: 30px;
    cursor: pointer;
}
button:hover{
    background-color: #1f7433;
}
</style>